package com.zhai.application.entity;

public class InitBean {

    public InitBean(){
        System.out.println("This is init method 1!");
    }

    public void initBean(){
        System.out.println("This is init method 2!");
        this.address = "江苏省南京市浦口区";
        this.name = "翟二远";
    }

    private String name;

    private String address;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public String toString() {
        return "InitBean{" +
                "name='" + name + '\'' +
                ", address='" + address + '\'' +
                '}';
    }
}
